﻿
Partial Class Admin_ProjetsForm
    Inherits System.Web.UI.Page

    Protected Sub FormViewProjet_ItemDeleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewDeletedEventArgs) Handles FormViewProjet.ItemDeleted
        Response.Redirect("Projets.aspx")
    End Sub

    Protected Sub FormViewProjet_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertedEventArgs) Handles FormViewProjet.ItemInserted
        Response.Redirect("Projets.aspx")
    End Sub

    Protected Sub FormViewProjet_ItemUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) Handles FormViewProjet.ItemUpdated
        Response.Redirect("Projets.aspx")
    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            If Not Request.QueryString("projet_id") Is Nothing Then
                Me.FormViewProjet.ChangeMode(FormViewMode.Edit)
            End If
        End If
    End Sub
End Class
